<!doctype html public "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<head>
<title>SegmentedAVISource / SegmentedDirectShowSource Avisynth Filter</title>
<link rel="stylesheet" type="text/css" href="../../avisynth.css">
</head>
<body >
<h2>SegmentedAVISource / SegmentedDirectShowSource</h2>
<p><code>SegmentedAVISource </code>(<var>string base_filename [, ...],
      bool &quot;audio&quot;, string &quot;pixel_type&quot;</var>)<br>
   <code>SegmentedDirectShowSource </code>(<var>string base_filename [, ...],
      float &quot;fps&quot;, bool "seek", bool &quot;audio&quot;, bool &quot;video&quot;,
	  bool &quot;convertfps&quot;, bool &quot;seekzero&quot;, int &quot;timeout&quot;,
	  string &quot;pixel_type&quot;</var>)</p>
<p>The <code>SegmentedAVISource</code> filter automatically loads up to 100 avi files
per argument (using <code><a href="avisource.htm">AVISource</a></code>) and splices them
together (using <code><a href="splice.htm">UnalignedSplice</a></code>).
If "d:\filename.ext" is passed as an argument, the files d:\filename.00.ext,
d:\filename.01.ext and so on through d:\filename.99.ext will be loaded. Any
files in this sequence that don't exist will be skipped.</p>
<p>If segments are spanned across multiple drives/folders, they can be loaded
provided the folders are sorted in the correct order. For example</p>
<pre># D:\t1 contains cap.01.avi
D:\t1\cap.01.avi

# D:\t2 contains cap.02.avi - cap.03.avi
D:\t2\cap.02.avi
D:\t2\cap.03.avi

# F:\t3 contains cap.04.avi - cap.05.avi
F:\t3\cap.04.avi
F:\t3\cap.05.avi</pre>
<pre># load all segments
SegmentedAVISource(&quot;D:\t1\cap.avi&quot;, &quot;D:\t2\cap.avi&quot;, &quot;F:\t3\cap.avi&quot;)</pre>
<p><code>SegmentedDirectShowSource</code> works the same way.</p>
<p>From <em>v2.04</em> up there is built-in support for ACM (Audio Compression Manager)
  audio (e.g. mp3-AVIs).</p>
<p>If you get an Unrecognized Exception in AviSynth 2.5 while reading a segmented avi
generated by a VirtualDub capture, delete the small final .avi file.</p>
<p><kbd>$Date: 2005/10/03 16:49:04 $</kbd></p>
<form>
<input TYPE="Button" VALUE="Back"
onClick="history.go(-1)">
</form>
</body>
</html>
